#include "RobotShootCommand.h"

RobotShootCommand::RobotShootCommand(Robot* receiver): robot(receiver)
{
}

RobotShootCommand::RobotShootCommand(const RobotShootCommand& rhs): GameCommand(rhs), robot(rhs.robot)
{
}

RobotShootCommand::~RobotShootCommand()
{
}

void RobotShootCommand::Execute()
{
	if (robot)
	{
		robot->Shoot();
	}
}

GameCommand* RobotShootCommand::Clone() const
{
	return new RobotShootCommand(*this);
}
